package com.tz.farmer.so;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class TradeInfoSo implements Serializable {
    /**
     *    CREATE TABLE `trade_info` (
     *   `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
     *   `trade_name` varchar(255) DEFAULT NULL COMMENT '客户名称',
     *   `code` varchar(255) DEFAULT NULL COMMENT '统一信用代码',
     *   `trade_time` varchar(255) DEFAULT NULL COMMENT '交易时间',
     *   `trade_num` varchar(255) DEFAULT NULL COMMENT '交易数量',
     *   `p_info_id` int(11) DEFAULT NULL COMMENT '产品信息id',
     *    PRIMARY KEY (`id`)
     * )  ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='交易信息表';
     */
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "id")
    private Integer id;
    @ApiModelProperty(value = "客户名称")
    private String tradeName;
    @ApiModelProperty(value = "统一信用代码")
    private String code;
    @ApiModelProperty(value = "交易数量")
    private String tradeNum;
    @ApiModelProperty(value = "交易时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8" )
    private Date tradeTime;
    @ApiModelProperty(value = "产品信息id")
    private Integer pInfoId;

    private Integer currentPage;
    private Integer pageSize;
}
